#
#	Makefile for REX scribe process.
#

ifndef DEBUG
DEBUG = -g
endif

ifndef OPTIM
OPTIM = -O
endif

PLATFORM=gcc_ntox86
PHABOPTS= 

CC = qcc
LD = qcc

CFLAGS  = -V$(PLATFORM) -w -c $(OPTIM) $(DEBUG) -I../hdr

H = ../hdr

OUTPUT = spot

OBJ = main.o y.tab.o

all:   $(OUTPUT)


$(OUTPUT):	$(OBJ)
	$(LD) $(OBJ) -o spot
#	$(LD) $(OBJ) -lfl -o spot

clean:
	  rm *.o spot

#lex.yy.c:	sp.l
#	flex sp.l

#sp.tab.o:	sp.y lex.yy.c
#		bison -d sp.y
#		@echo ""
#		@echo "NOTE: Ignore warnings about 'yyerrlab' and 'yynewerror'"
#		@echo ""
#		$(CC) $(CFLAGS) sp.tab.c

main.o: main.c

#pure:
#	cc -n y.tab.o main.o -ly -lln -lS -o spot

#nfpu:
#	cc -f y.tab.o main.o -ly -lln -lS -o spot
#	-strip spot
